package com.beerandjesus.sportofkings.handicapper.model;

public enum RaceType {
	G1("Grade I"),
	G2("Grade II"),
	G3("Grade III"),
	N("Nongraded Stakes/Handicap"),
	A("Allowance"),
	R("Starter Allowance"),
	T("Starter Handicap"),
	C("Claiming"),
	CO("Optional Claiming"),
	S("Maiden Special Weight"),
	M("Maiden Claiming"),
	AO("Allowance Optional Claiming"),
	MO("Maiden Optional Claiming"),
	NO("Optional Claiming Stakes"),
	EMPTY("Empty"),
	UNDEFINED("Undefined");
	private String name;
	
	private RaceType(String name) {
		this.name = name;
	}
	public String getDescription() {
		return name;
	}

    public boolean isMaiden() {
        switch (this) {
            case S:
                return true;
            case M:
                return true;
            case MO:
                return true;
            default:
                return false;
        }

    }
}
